package mysql

import "gorm.io/gorm"

type Seller struct {
	gorm.Model
	Name   string  `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Price  float64 `gorm:"type:decimal(10,2);not null;comment:'商品价格'"`
	Sales  string  `gorm:"type:varchar(20);not null;comment:'销量'"`
	Coupon int     `gorm:"type:int;not null;comment:'优惠劵'"`
}

type Order struct {
	gorm.Model
	SellerId int     `gorm:"type:int;not null;comment:'商品id'"`
	Title    string  `gorm:"type:varchar(20);not null;comment:'订单标题'"`
	Price    float64 `gorm:"type:decimal(10,2);not null;comment:'订单价格'"`
	Num      int     `gorm:"type:int;not null;comment:'订单数量'"`
}
